package com.xhwl.logistics.controller;

import com.xhwl.common.pojo.ResultJson;
import com.xhwl.logistics.dto.manipulate.VehicleAdminSyncDTO;
import com.xhwl.logistics.service.business.VehicleAdminBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//@RestController
public class VehicleAdminController {

    @Autowired
    private VehicleAdminBusinessService vehicleAdminBusinessService;

    //用于区域名称和通道名称不变(厂商科拓车场基本信息区域名称和id不变，通道名称和id不变)，把区域thirdAreaId和通道thirdPassageId写入数据库
    @PostMapping("/admin/sync-ke-top-parking-lot-info-third-id")
    public ResultJson<Void> adminSyncKeTopParkingLotInfo(@RequestBody VehicleAdminSyncDTO vehicleAdminSyncDTO) {
        vehicleAdminBusinessService.adminSyncKeTopParkingLotInfo(vehicleAdminSyncDTO.getProjectId());

        return ResultJson.successWithVoid();
    }

}
